package com.timoon.webcomponent.utility.navs;

import java.util.List;

import org.apache.wicket.markup.html.WebPage;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013.4.1</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */
public class NavParameter implements java.io.Serializable{

	private String key;
	private String text;
	private Class<? extends WebPage> targetPage;
	private List<NavParameter> childs;
	private boolean isActive=false;
	
	public NavParameter(String key){
		this.key=key;
	}
	public NavParameter(String key,String text,Class<? extends WebPage> targetPage) {
		// TODO Auto-generated constructor stub
		this.key=key;
		
		this.text=text;
		
		this.targetPage=targetPage;
	}
	public boolean isActive() {
		return isActive;
	}
	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Class getTargetPage() {
		return targetPage;
	}
	public void setTargetPage(Class targetPage) {
		this.targetPage = targetPage;
	}
	public List<NavParameter> getChilds() {
		return childs;
	}
	public void setChilds(List<NavParameter> childs) {
		this.childs = childs;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
}
